Skip to content

yokekeong

  • Home
  • Blog
  • Portfolio
  • About

stringAsFactors – a brief history

2015-08-182015-08-17
< 1 min. read

If you have used R’s read.csv function, you will inevitably use the stringsAsFactors=FALSE option. Roger Peng offers a brief history into why the default for stringAsFactors option is TRUE.

Alternatively, you can use the read_csv function from the readr package by Hadley Wickham, which does not automatically convert characters to factors.

Share:

  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pocket (Opens in new window) Pocket
  • More
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to print (Opens in new window) Print
Posted in AI, ML & Data ScienceTagged R
Read this next

Definition of Statistical Significance

© 2026 yokekeong • Slightly Theme